package com.atguigu.factorymethod;

/**
 * @ClassName BJOrderPizza
 * @Description 北京披萨, 只处理北京的披萨
 * @Author HongJian-Yang
 * @Date 2020/6/17 0:27
 * @Version 1.0
 */
public class BJOrderPizza extends OrderPizza {
    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if ("BJCheesePizza".equals(orderType)) {
            pizza = new TJCheesePizza().setName("北京芝士披萨");
        }
        return pizza;
    }
}
